package com.ryan.plugin.output;

import com.ryan.plugin.store.AClass;

import java.util.ArrayList;
import java.util.List;

public class OutputClass {
    public String packageName;
    public String className;
    public String tag;
    public String from;
    public List<OutputMethod> methods;

    public static OutputClass from(AClass aClass) {
        return from(aClass, true);
    }

    public static OutputClass from(AClass aClass, boolean initMethods) {
        OutputClass o = new OutputClass();
        o.packageName = aClass.packageName;
        o.className = aClass.className;
        o.tag = aClass.tag;
        o.from = aClass.from;
        if (initMethods) o.methods = new ArrayList<>();
        return o;
    }
}
